/* 统一登录页面样式 */
:root {
    --primary: #1976d2;
    --primary-light: #42a5f5;
    --primary-dark: #0d47a1;
    --primary-gradient: linear-gradient(135deg, #1976d2, #42a5f5);
    --secondary: #ff9800;
    --success: #4caf50;
    --warning: #ff9800;
    --danger: #f44336;
    --gray: #757575;
    --gray-light: #f5f5f5;
    --gray-dark: #424242;
    --text-color: #333;
    --bg-color: #f8f9fa;
    
    /* 阴影变量 */
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    
    /* 边框圆角 */
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    
    /* 过渡效果 */
    --transition: all 0.3s ease;
    
    /* 字体 */
    --font-family: 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f0f2f5;
    height: 100vh;
    overflow: hidden;
}

/* 登录容器 */
.login-container {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: #f0f2f5;
}

/* 背景动画 */
.login-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/login-bg.svg');
    background-size: cover;
    opacity: 0.95;
}

.bg-pattern {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 320px;
    background-image: url('../img/wave-pattern.svg');
    background-size: cover;
    background-position: center bottom;
}

.bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    animation: float 20s infinite;
    backdrop-filter: blur(1px);
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    33% {
        transform: translate(100px, -100px) rotate(120deg) scale(1.2);
    }
    66% {
        transform: translate(-50px, 50px) rotate(240deg) scale(0.8);
    }
    100% {
        transform: translate(0, 0) rotate(360deg) scale(1);
    }
}

/* 登录内容区 */
.login-content {
    width: 1200px;
    max-width: 90%;
    min-height: 650px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 左侧系统介绍 */
.system-intro {
    flex: 1;
    padding: 40px;
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.95), rgba(25, 118, 210, 0.9));
    color: white;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* 添加装饰图案 */
.system-intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath fill='rgba(255,255,255,0.05)' d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z'%3E%3C/path%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: 0;
}

.logo-area {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.logo-area img {
    width: 60px;
    height: 60px;
    margin-right: 15px;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.2));
}

.logo-area h1 {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.intro-text {
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.intro-headline {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.4;
}

.intro-description {
    font-size: 15px;
    line-height: 1.6;
    opacity: 0.9;
}

.system-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
    flex: 1;
    position: relative;
    z-index: 1;
}

.feature-item {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: 15px;
    transition: var(--transition);
}

.feature-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 20px;
}

.feature-text h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.feature-text p {
    font-size: 14px;
    opacity: 0.8;
}

.system-stats {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    flex: 1;
    margin: 0 5px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 13px;
    opacity: 0.8;
}

/* 右侧登录框 */
.login-form-container {
    width: 450px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    background-color: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.login-form-wrapper {
    flex: 1;
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.form-header p {
    color: var(--gray);
    font-size: 15px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--gray-dark);
    font-size: 14px;
}

.input-group {
    position: relative;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    font-size: 16px;
}

.input-group .toggle-password {
    left: auto;
    right: 15px;
    cursor: pointer;
    transition: var(--transition);
}

.input-group .toggle-password:hover {
    color: var(--primary);
}

.input-group input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius);
    font-size: 15px;
    transition: var(--transition);
    background-color: #f9fafc;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
    background-color: #fff;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-me input {
    margin-right: 8px;
}

.forgot-password {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.forgot-password:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(25, 118, 210, 0.3);
}

.login-btn span {
    position: relative;
    z-index: 1;
    margin-right: 10px;
    transition: var(--transition);
}

.login-btn i {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
    font-size: 14px;
}

.login-btn:hover {
    box-shadow: 0 6px 15px rgba(25, 118, 210, 0.4);
}

.login-btn:hover i {
    transform: translateX(5px);
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0d47a1, #1976d2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.login-btn:hover::before {
    opacity: 1;
}

.login-btn.loading {
    pointer-events: none;
}

.login-btn.loading span {
    opacity: 0;
}

.login-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s infinite linear;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.divider {
    text-align: center;
    margin: 24px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.1);
}

.divider span {
    background-color: white;
    padding: 0 15px;
    position: relative;
    color: var(--gray);
}

.alt-login-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 24px;
}

.alt-login {
    padding: 12px;
    background-color: #f9fafc;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-dark);
    cursor: pointer;
    transition: var(--transition);
}

.alt-login i {
    margin-right: 8px;
    font-size: 16px;
}

.alt-login:hover {
    background-color: #f0f2f5;
}

.alt-login.ldap i {
    color: #1976d2;
}

.alt-login.face-id i {
    color: #4caf50;
}

.register-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--gray);
}

.register-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    margin-left: 5px;
    transition: var(--transition);
}

.register-link a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.form-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    font-size: 12px;
    color: var(--gray);
}

.footer-links {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.footer-links a {
    color: var(--gray);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

/* 响应式调整 */
@media (max-width: 992px) {
    .login-content {
        flex-direction: column;
        max-width: 95%;
        min-height: auto;
    }
    
    .system-intro {
        padding: 30px;
    }
    
    .login-form-container {
        width: 100%;
    }
    
    .system-features {
        margin-bottom: 20px;
    }
    
    .feature-item {
        padding: 10px;
    }
    
    .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .login-content {
        max-width: 100%;
        border-radius: 0;
        height: 100vh;
    }
    
    .system-intro {
        padding: 20px;
    }
    
    .logo-area {
        margin-bottom: 20px;
    }
    
    .logo-area img {
        width: 40px;
        height: 40px;
    }
    
    .logo-area h1 {
        font-size: 20px;
    }
    
    .intro-headline {
        font-size: 18px;
    }
    
    .system-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .stat-item {
        margin: 0;
    }
    
    .login-form-container {
        padding: 20px;
    }
    
    .alt-login-options {
        grid-template-columns: 1fr;
    }
} 